<!DOCTYPE html>
<html>
<head>@@include('../common/header.html',{"title":"生成案例"})
@@include('../common/editor.html')
</head>
<body class="hold-transition skin-blue sidebar-mini">
	<div class="wrapper">
		<div class="content-wrapper ml0">
			<section class="content-header">
				<h1>生成案例</h1>
				<ol class="breadcrumb">
					<li><a href="#"><i class="fa fa-dashboard"></i>模块名称</a></li>
					<li class="active">生成案例</li>
				</ol>
			</section>
			<section class="content container-fluid">
				<div class="box box-primary">
					<div class="box-body">
						<form class="form-inline" way-scope="model.search">
										<div class="form-group">
										<input type="text" class="form-control" placeholder="文本" name="inputText" way-data="inputText" maxlength="50"  >
										</div>
									<div class="form-group">
										<select class="form-control sf-select" way-data="inputSelect"
											name="inputSelect" data-sf-dict-type="yes_no">
											<option value="">请选择</option>
										</select>
									</div>
										<div class="form-group sf-radio" data-sf-input-name="inputRadio" data-sf-dict-type="yes_no">
										</div>
										<div class="form-group sf-checkbox" data-sf-input-name="inputCheckbox" data-sf-dict-type="yes_no">
										</div>
									<div class="form-group">
										<label>日期</label> <input type="text" class="form-control date" placeholder="日期" name="inputDate"  way-data="inputDate">
									</div>
							<button type="button" class="btn btn-default sf-permission-ctl" id="search" data-sf-permission="demo:gen:qry">
								<i class="fa fa-search"></i>
							</button>
							<div class="btn-group pull-right">
								<button type="button" class="btn btn-primary sf-permission-ctl" id="add" data-sf-permission="demo:gen:save">
									<i class="fa fa-plus"></i>
								</button>
								<button type="button" class="btn btn-info sf-permission-ctl" id="edit" data-sf-permission="demo:gen:update">
									<i class="fa fa-edit"></i>
								</button>
								<button type="button" class="btn btn-danger sf-permission-ctl" id="delete" data-sf-permission="demo:gen:delete">
									<i class="fa fa-trash-o"></i>
								</button>
							</div>
						</form>
					</div>
				</div>
				<div class="box">
					<div class="box-body">
						<!-- table -->
						<table id="table"></table>
					</div>
				</div>
			</section>
		</div>
	</div>
	<!-- 添加与修改start -->
	<div class="modal fade" id="form-panel" way-scope="model.form">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-label="Close">
						<span aria-hidden="true">&times;</span>
					</button>
					<h4 class="modal-title" way-data="title" way-html="true"></h4>
				</div>
				<form class="form-horizontal" way-scope="data" id="data-form">
					<div class="modal-body">
							<input type="hidden" way-data="id" name="id">
								<div class="form-group">
									<label class="col-sm-2 control-label">文本<font class="text-red">*</font></label>
									<div class="col-sm-5">
										<input type="text" class="form-control" way-data="inputText" maxlength="50"
											name="inputText"  required >
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">下拉<font class="text-red">*</font></label>
									<div class="col-sm-5">
										<select class="form-control sf-select" way-data="inputSelect"
											name="inputSelect" data-sf-dict-type="yes_no" required>
											<option value="">请选择</option>
										</select>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">单选<font class="text-red">*</font></label>
										<div class="col-sm-5 sf-radio" data-sf-input-name="inputRadio" data-sf-dict-type="yes_no"   data-sf-required="required" >
										</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">复选<font class="text-red">*</font></label>
										<div class="col-sm-5 sf-checkbox" data-sf-input-name="inputCheckbox" data-sf-dict-type="yes_no"   data-sf-required="required" >
										</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">文本域</label>
									<div class="col-sm-10">
										<textarea class="form-control" rows="3" way-data="inputTextarea" name="inputTextarea" maxlength="65535"   ></textarea>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">日期<font class="text-red">*</font></label>
									<div class="col-sm-5">
										<input type="text" class="form-control date" way-data="inputDate" 
											name="inputDate" id="inputDate" >
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">整数</label>
									<div class="col-sm-5">
										<input type="number" class="form-control" way-data="inputZhengshu" 
											name="inputZhengshu"   >
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">小数</label>
									<div class="col-sm-5">
										<input type="text" class="form-control" way-data="inputXiaoshu" pattern="^-{0,1}\d+(\.\d{0,2})?$" data-bv-regexp-message="请按提示格式输入"
											name="inputXiaoshu"   >
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">富文本</label>
									<div class="col-sm-10">
										<textarea class="form-control" rows="3" style="width:100%;height:400px;visibility:hidden;" way-data="richText" name="richText" maxlength="16777215"   ></textarea>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">图片</label>
									<div class="col-sm-5">
										<input type="text" class="form-control" way-data="image" maxlength="255"
											name="image"  >
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">文件</label>
									<div class="col-sm-5">
										<input type="text" class="form-control" way-data="file" maxlength="255"
											name="file"  >
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label">备注信息</label>
									<div class="col-sm-10">
										<textarea class="form-control" rows="3" way-data="remarks" name="remarks" maxlength="255"   ></textarea>
									</div>
								</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-default pull-left"
							data-dismiss="modal">
							<i class="fa fa-times"></i> 取消
						</button>
						<button type="submit" class="btn btn-primary">
							<i class="fa fa-save"></i> 保存
						</button>
					</div>
				</form>
			</div>
		</div>
	</div>
	<!-- 添加与修改end -->
	<!--查看  start-->
	<div class="modal fade" id="modal-view" role="dialog"
		way-scope="model.view">
		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-label="Close">
						<span aria-hidden="true">&times;</span>
					</button>
					<h4 class="modal-title">生成案例</h4>
				</div>
				<div class="modal-body">
					<form class="form-horizontal">
						<div class="form-group">
								<label class="col-sm-2 control-label">文本:</label>
								<div class="col-sm-5">
									<p class="form-control-static" way-data="inputText"></p>
								</div>
								<label class="col-sm-2 control-label">下拉:</label>
								<div class="col-sm-5">
									<p class="form-control-static" way-data="inputSelect"></p>
								</div>
								<label class="col-sm-2 control-label">单选:</label>
								<div class="col-sm-5">
									<p class="form-control-static" way-data="inputRadio"></p>
								</div>
								<label class="col-sm-2 control-label">复选:</label>
								<div class="col-sm-5">
									<p class="form-control-static" way-data="inputCheckbox"></p>
								</div>
								<label class="col-sm-2 control-label">文本域:</label>
								<div class="col-sm-5">
									<p class="form-control-static" way-data="inputTextarea"></p>
								</div>
								<label class="col-sm-2 control-label">日期:</label>
								<div class="col-sm-5">
									<p class="form-control-static" way-data="inputDate"></p>
								</div>
								<label class="col-sm-2 control-label">整数:</label>
								<div class="col-sm-5">
									<p class="form-control-static" way-data="inputZhengshu"></p>
								</div>
								<label class="col-sm-2 control-label">小数:</label>
								<div class="col-sm-5">
									<p class="form-control-static" way-data="inputXiaoshu"></p>
								</div>
								<label class="col-sm-2 control-label">富文本:</label>
								<div class="col-sm-5">
									<p class="form-control-static" way-data="richText"></p>
								</div>
								<label class="col-sm-2 control-label">图片:</label>
								<div class="col-sm-5">
									<p class="form-control-static" way-data="image"></p>
								</div>
								<label class="col-sm-2 control-label">文件:</label>
								<div class="col-sm-5">
									<p class="form-control-static" way-data="file"></p>
								</div>
								<label class="col-sm-2 control-label">创建时间:</label>
								<div class="col-sm-5">
									<p class="form-control-static" way-data="createDate"></p>
								</div>
								<label class="col-sm-2 control-label">更新时间:</label>
								<div class="col-sm-5">
									<p class="form-control-static" way-data="updateDate"></p>
								</div>
								<label class="col-sm-2 control-label">备注信息:</label>
								<div class="col-sm-5">
									<p class="form-control-static" way-data="remarks"></p>
								</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
	@@include('../common/common-js.html')
	<script src="/js/demo/gen.js"></script>
</body>
</html>